package Twitim::API::UserTimeline;

use strict;
use warnings;

use base qw( Twitim::API );

sub get {
    my ( $self, $output, $api, $username, $num ) = @_;
    $self->_start($output, $username, $num);
    $self->_process();
}

sub _start {
    my ( $self, $output, $username, $num ) = @_;

    # print "$output, $username, $num\n\n";
    my $api_arg = "/$username.json";
    my %extra;
    $extra{'count'} = $num if defined $num;
    $self->_getfromapi( 'statuses/user_timeline', $api_arg, $output, \%extra );

    # print $api_arg,"\n";
}

1;
